package com.example.mybatis_puls.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 * ClassName: asd
 * Package: com.example.mybatis_puls.pojo
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-01-14
 * Time: 21:26
 */

@Data
@TableName("t_product")
public class Product {
    private Long id;
    private String name;
    private Integer price;
    @Version //表示乐观锁的版本号字段
    private Integer version;
}